from django.db import models
from meiduo_mall.utils.models import BaseModel
from users.models import User


class OAuthQQUser(BaseModel):
    # 指定绑定的用户
    user = models.ForeignKey(User)
    # QQ授权账号的唯一标识
    openid = models.CharField(max_length=100)

    class Meta:
        db_table = 'tb_oauth_qq'
